//导入 request 包
const request = require('request');
//发送请求       url                 回调                   https://www.bilibili.com
request('https://api.bilibili.com/x/space/acc/info?mid=302417610', function (error, response, body) {
    // console.log(body);
    //将 JSON 字符串转化为 js 对象
    const data = JSON.parse(body);
    console.log(data);
});